<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <script src="jquery.min.js"></script>
</head>
<body>
    <div>
        <span>我是内容</span>
    </div>
    <input type="text" value="请输入内容">
    <script>
        // 1.获取、设置元素内容
        console.log($('div').html());
        // $('div').html('123456');

        // 2.获取、设置元素文本内容text()
        console.log($('div').text());
        $('div').text('<span>为了部落</span>');
        
        // 3.获取、设置表单值
        console.log($('input').val());
        $('input').val('dota2');
    </script>
</body>
</html>